﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Appliaction.Dto.Inv.othwrSelectDto;

namespace Domain.Entitys.Inv
{
    /// <summary>
    /// 其他出库单和其他出库单详情
    /// </summary>
    public class othoutordSelectDto
    {
        public int Othoutord_id { get; set; }

        public string Othoutord_type { get; set; }

        public string Othoutord_code { get; set; }

        public string Warehouse_code { get; set; }

        public string Warehouse_name { get; set; }

        /// <summary>
        /// 库区编码
        /// </summary>
        public string zone_code { get; set; }

        /// <summary>
        /// 库区名称
        /// </summary>
        public string zone_name { get; set; }

        public string Othoutord_wkeep { get; set; }

        public DateTime? Othoutord_time { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public string Othoutord_audit_statua { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Othoutord_status { get; set; }

        public string othoutord_code_Associated { get; set; }
        /// <summary>
        /// 审核备注
        /// </summary>
        public string Othoutord_audit_opinion { get; set; }

        // 明细字段（可选）
        public List<inv_othproddetailsInfo> Details { get; set; }

        //明细
        public class inv_othproddetailsInfo
        {
            public int Othproddetails_id { get; set; }

            public int Othoutord_id { get; set; }

            public string Pro_name { get; set; }

            public string Pro_code { get; set; }

            public string Pro_brnad { get; set; }

            public string Pro_model { get; set; }

            public string unitmeas_id { get; set; }
            /// <summary>
            /// 出库数量
            /// </summary>
            public decimal Othwrproddt_numder { get; set; }

            public string stock_entry_no { get; set; }

            /// <summary>
            /// 入库库位编号
            /// </summary>
            public string location_code { get; set; }
        }
    }
}
